From: Giovanni Campagna Date: Thu, 12 Sep 2013 11:04:47 +0000 (+0200) Subject: ScreenShield: fix a typo due to the MetaCursorTracker switch X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3444 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3e8ab0645bef68a45cc91f99f7b470ae5fe3e3a8;p=gnome-shell.git ScreenShield: fix a typo due to the MetaCursorTracker switch And replace another show_cursor() usage with the new API. Reviewed-by: Carlos Soriano in IRC. --- diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index e5ba2de30..32fd737b6 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -1087,15 +1087,15 @@ const ScreenShield = new Lang.Class({ this._checkArrowAnimation(); - let motionId = global.stage.connect('captured-event', function(stage, event) { + let motionId = global.stage.connect('captured-event', Lang.bind(this, function(stage, event) { if (event.type() == Clutter.EventType.MOTION) { - global.stage.show_cursor(); + this._cursorTracker.set_pointer_visible(true); global.stage.disconnect(motionId); } return false; - }); - this._cursorTracker.set_pointer_tracker(false); + })); + this._cursorTracker.set_pointer_visible(false); this._lockScreenState = MessageTray.State.SHOWN; this._lockScreenGroup.fixed_position_set = false;